package com.hzzc;

public enum EnumResultCode {

    //成功
    SUCCESS(200),
    //错误
    ERROR(500),
    //未登录
    REDIRECT(302),
    //未登录
    UNAUTH(401),
    //权限不足
    REJECT(403);

    private int code;

    EnumResultCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public EnumResultCode setCode(int code) {
        this.code = code;
        return this;
    }
}
